var INDEX = function(){
	var o ={};
	o.pageno = 1;
	o.run = function(){
		o.loadshopTypeList();
	}
	o.loadshopTypeList = function(){
		$.get('/Api/Shop/shopTypeList',null,function(ret){
		if(ret.staus == true){			
			//template.helper('type_id',type_id);
			var html = template('shoptypelist-tpl',ret);
			$('#js_climit_li').append(html);
		}else{
			alert("没有类别了！");
		}
	});	
	}
	o.Lunbo = function (){
		$.get('/Api/Article/Lunbo',{type_id:type_id},function(ret){
			if(ret.staus == true){
				var html = template('article-alist-lunbo',ret);
				$('#lunbo').append(html);
				$('#demo-slider-0').flexslider();
			}else{
				alert("无法轮播！");
			}
		});
	}
	o.loadNextPage = function(){
		$("#load-next-page").unbind('click');
		o.pageno++;
		o.loadArticleList();
	}
	return o;
}();

